package day4;
import java.text.SimpleDateFormat;
import java.util.*;
/**
 * @author oldliu
 * @since 1.0
 */
public class QuizDay {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Calendar calendar = Calendar.getInstance();
        System.out.println("请输入年份");
        int a =input.nextInt();
        calendar.set(a,0,31);
        for (int i =0;i<12;i++) {
            int actualMaximum = calendar.getActualMaximum(Calendar.DATE);
            int d = calendar.get(Calendar.DAY_OF_WEEK);
            //calendar.set(Calendar.DATE,(actualMaximum-14+(7-d)));
            calendar.set(Calendar.DATE,d==7? actualMaximum-7:(actualMaximum-14+(7-d)));
            System.out.println(new SimpleDateFormat("yyyy-MM-dd").format(calendar.getTime())+"\t8:00");
            calendar.set(a,0,31);
            calendar.add(Calendar.MONTH,(i+1));
        }
    }
}
